-
Notifications
You must be signed in to change notification settings - Fork 299
Reduce de complexity of the js-ipfs-api module #313
Conversation
@@ -84,7 +85,7 @@ function requestAPI (config, path, args, qs, files, buffer, cb) { | |||
const port = config.port ? `:${config.port}` : '' | |||
|
|||
const opts = { | |||
method: files ? 'POST' : 'GET', | |||
method: 'POST', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not all requests should be POST
requests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's check with @whyrusleeping, I've changed this after a conversation with him when we were debugging some npm-on-ipfs stuff.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ping @whyrusleeping
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛎
e85c334
to
0c7a340
Compare
3d506cd
to
73078ea
Compare
9b513dd
to
0ca1a69
Compare
individually and reduce complexity inside ipfs-api
0ca1a69
to
108414b
Compare
…tead, migrate every call to it
@victorbjelkholm moving away from the argument flags :) #43a1dfa |
cf157bc
to
c6aef50
Compare
I've refactored all the test units that not require multiple nodes, to be come isolated. Will handle the remaining (3) with the interface-ipfs-core tests. |
c6aef50
to
0bee89f
Compare
0bee89f
to
11a166e
Compare
Why u no wait for CR? |
It was not merged to master, it was merged to the other PR branch ;) |
ahh okay :) |
Right now, the guts of js-ipfs-api are overly complex, making it hard to debug, to apply changes or even to develop, since we have to run every single test every single time. To make the experience more pleasant, this PR has the goals to:
What other things would you like to see that would make using the js-ipfs-code more sane?